//
//  ZMObserverInfo.h
//  ZMKitDemo
//
//  Created by zm on 2018/6/20.
//  Copyright © 2018年 zm. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^ZMKVOCallBack)(id observer, NSString *key, id oldValue,id newValue);


@interface ZMObserverInfo : NSObject

/**
 监听者
 */
@property (nonatomic,weak) id observer;

/**
 监听的属性
 */
@property (nonatomic,copy) NSString *key;

/**
 回调的block
 */
@property (nonatomic, copy) ZMKVOCallBack callback;

- (instancetype)initWithObserver:(id)observer key:(NSString *)key callback:(ZMKVOCallBack)callback;

@end
